<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        margin: 0;
        padding: 0;
      }
      .clock {
        width: 300px;
        height: 300px;
        border-radius: 50%;
        margin: 150px auto;
        /* border: 5px solid skyblue; */
        /* animation: sec 60s; */
        position: relative;
        background: url('./picture/duck.webp') 0 0 / cover;
      }
      .clock div {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        margin: auto;
      }
      .sec-wrapper {
        width: 90%;
        height: 90%;
        animation: run 60s infinite;
      }
      .sec {
        height: 50%;
        width: 2px;
        background-color: red;
        transform: translateY(-50%);
      }
      .min-wrapper {
        width: 80%;
        height: 80%;
        animation: run 3600s infinite;
      }
      .min {
        height: 50%;
        width: 3px;
        background-color: black;
        transform: translateY(-50%);
      }
      .hour-wrapper {
        width: 70%;
        height: 70%;
        animation: run calc(3600s * 24) infinite;
      }
      .hour {
        height: 50%;
        width: 4px;
        background-color: black;
        transform: translateY(-50%);
      }

      @keyframes run {
        from {
          transform: rotateZ(0);
        }
        to {
          transform: rotateZ(360deg);
        }
      }
    </style>
  </head>
  <body>
    <div class="clock">
      <!-- 秒针容器 -->
      <div class="sec-wrapper">
        <div class="sec"></div>
      </div>
      <div class="min-wrapper">
        <div class="min"></div>
      </div>
      <div class="hour-wrapper">
        <div class="hour"></div>
      </div>
    </div>
  </body>
</html>
